Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix useFacetUnwrap support for custom equality check #140

Merged
merged 4 commits into from
Jul 25, 2024

Conversation

pirelenito
Copy link
Member

@pirelenito pirelenito commented Jul 25, 2024

Custom equality checks for the useFacetUnwrap never worked, and instead would always consider the value to never change.

Luckily, we never used this feature internally. 🙈

Copy link
Contributor

@Shenato Shenato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@pirelenito pirelenito merged commit a10baad into main Jul 25, 2024
12 checks passed
@pirelenito pirelenito deleted the fix-unwrap-equality-check branch July 25, 2024 12:56
marlonicus pushed a commit that referenced this pull request Aug 12, 2024
* Fix test catching the bug

* Properly checks if the new value is the same as the previous one

The prior implementation would always compare the previous with itself

* Refactor so that in never calls setState, unless needed

* Revert "Refactor so that in never calls setState, unless needed"

This reverts commit dd53972.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants